ERPNext Update after Code Customization

hi folks,
Now i am using erpv8 this erpv8 i am create a so much customized doctypes and changes in *.py files .But now i want to update to the latest version .can i do that ?what are step to follow…? i want to make that update
and also make sure my custmization still valid can you help…thanks ?