worked further on python CSS PHY implementation