Using PythonPathHelper to check if a file is a valid .py or __init__ file (made some fixes when checking if it's a valid __init__ file).